package errors

import (
	"fmt"
)

func (e *Error) Error() string {
	return fmt.Sprintf("error: code = %d reason = %s message = %s ", e.Code, e.Reason, e.Message)
}
func New(code int, reason, message string) *Error {
	return &Error{
		Code:    int32(code),
		Message: message,
		Reason:  reason,
	}
}
